import { RequestType } from '~/config/enum/request-type.enum'
const CONTROLLER = 'member'
const SERVICE = 'service-member'

export default {
  /**
   * 分页查询所有会员
   */
  findAllListByPage: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'findAllListByPage',
    type: RequestType.Get
  },
  /**
   * 添加会员
   */
  addMember: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'addMember',
    type: RequestType.Post
  },
  /**
   * 编辑会员
   */
  updateMember: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'updateMember',
    type: RequestType.Put
  }
}
